package dem1;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 33013
 * Date: 2023-03-29
 * Time: 14:12
 */
public class Test2 {
    public static void main(String[] args) {
        MyArrayList<String> myArrayList = new MyArrayList<>();
        myArrayList.add("zhangjiahui");
        myArrayList.add("chenglong");
        myArrayList.add("zhouxingci");

        System.out.println(myArrayList.getObject(2));
        System.out.println(myArrayList);

        MyArrayList2 myArrayList2 = new MyArrayList2();
        myArrayList2.add("张三","李四","王五");
        System.out.println(myArrayList2);

    }
}
